package com.bean;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.BeanNameAware;
import org.springframework.beans.factory.InitializingBean;

@Slf4j
public class BeanNameAwareBean implements BeanNameAware {

    @Override
    public void setBeanName(String name) {
        log.info("我在BeanFactory中的名字叫做：{}",name);
    }
}
